package com.linkage.lcims.base.po.system;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="BD_BB_BINDTYPE_DEF"
 *     
*/

@SuppressWarnings("serial")
public class BdBbBindtypeDef implements Serializable {

    /** identifier field */
    private Integer bindtype;

    /** persistent field */
    private String attrlist;

    /** nullable persistent field */
    private String description;

    /** full constructor */
    public BdBbBindtypeDef(Integer bindtype, String attrlist, String description) {
        this.bindtype = bindtype;
        this.attrlist = attrlist;
        this.description = description;
    }

    /** default constructor */
    public BdBbBindtypeDef() {
    }

    /** minimal constructor */
    public BdBbBindtypeDef(Integer bindtype, String attrlist) {
        this.bindtype = bindtype;
        this.attrlist = attrlist;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.Integer"
     *             column="bindtype"
     *         
     */
    public Integer getBindtype() {
        return this.bindtype;
    }

    public void setBindtype(Integer bindtype) {
        this.bindtype = bindtype;
    }

    /** 
     *            @hibernate.property
     *             column="attrlist"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getAttrlist() {
        return this.attrlist;
    }

    public void setAttrlist(String attrlist) {
        this.attrlist = attrlist;
    }

    /** 
     *            @hibernate.property
     *             column="description"
     *             length="50"
     *         
     */
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("bindtype", getBindtype())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof BdBbBindtypeDef) ) return false;
        BdBbBindtypeDef castOther = (BdBbBindtypeDef) other;
        return new EqualsBuilder()
            .append(this.getBindtype(), castOther.getBindtype())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBindtype())
            .toHashCode();
    }

}
